package com.spzx.manager.mapper;

import com.spzx.model.dto.system.SysUserDto;
import com.spzx.model.entity.system.SysUser;

import java.util.List;

public interface SysUserMapper {

    /**
     * 根据用户名查询用户数据
     *
     * @param userName
     * @return
     */
    SysUser selectUserInfoByUserName(String userName);

    List<SysUser> findByPage(SysUserDto sysUserDto);
    public abstract SysUser findByUserName(String name);

    public abstract void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);
}
